#ifndef __BSP_ETH_H_
#define __BSP_ETH_H_

#ifdef __cplusplus
extern "C"
{
#endif

#include "system.h"


/* export func */

void bsp_eth_init(void);
void bsp_eth_deinit(void);
ETH_HandleTypeDef *bsp_eth_get_handle(void);

void bsp_eth_set_mac(uint8_t *mac);
uint8_t bsp_eth_read_phy_reg(uint32_t addr, uint32_t reg, uint32_t *value);
uint8_t bsp_eth_write_phy_reg(uint32_t addr, uint32_t reg, uint32_t value);


#ifdef __cplusplus
}
#endif

#endif // __BSP_ETH_H_
